"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/10/29 9:39
@Description :  抽取类  创建对象

类  实例对象
1.类是实例对象的抽象
2.对象是类的一个具体
"""

# student class
class Student:
    name = None
    age = None
    sex = None
    score = None

# 创建对象
student1 = Student()
# 对象属性初始化  对象名.属性名 = 值
student1.name = 'zhangsan'
student1.age = 18
student1.sex = '男'
student1.score = 100
print(student1.name)
print('----------------------------------------')
student2 = Student()
student2.name = 'lisi'
student2.age = 20
student2.sex = '男'
student2.score = 90
print(student2.name)
